src=main.cpp
bin=mythread.out
src_test=testThread.cpp
bin_test=test.out


$(bin):$(src)
	g++ $< -o $@ -std=c++11 -lpthread

.PHONY:clean run g test
clean:
	@rm -f $(bin) $(bin_test)
run:
	@./$(bin)
g:
	g++ $(src) -o $(bin) -std=c++17 -lpthread -g
test:$(src_test)
	g++ $< -o $(bin_test) -std=c++11 -lpthread
	./test.out
